package com.hd.hdxgddcommon.web.wechatUtil;

import org.apache.http.client.HttpClient;

public interface WechatConstant {
    String DOMAIN_API = "api.weixin.qq.com";
    //获取openId
    String OPENID_JSCODE_SUFFIX = "https://" + DOMAIN_API + "/sns/jscode2session?appid={APPID}&secret={SECRET}&js_code={CODE}&grant_type=authorization_code";
    //获取accessToken
    String GET_ACCESS_TOKEN_SUFFIX = "https://" + DOMAIN_API + "/cgi-bin/token?grant_type=client_credential&appid={APPID}&secret={SECRET}";

    enum SignType {
        MD5, HMACSHA256
    }

    int CONNECT_TIMEOUT_MS = 6 * 1000; //超时时间，单位是毫秒

    int READ_TIMEOUT_MS = 8 * 1000; //超时时间，单位是毫秒

    String WXPAYSDK_VERSION = "WXPaySDK/3.0.9";

    String USER_AGENT = WXPAYSDK_VERSION +
            " (" + System.getProperty("os.arch") + " " + System.getProperty("os.name") + " " + System.getProperty("os.version") +
            ") Java/" + System.getProperty("java.version") + " HttpClient/" + HttpClient.class.getPackage().getImplementationVersion();


}
